package com.bw.service;

import com.bw.bean.User;
import com.bw.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceimp implements UserService {
    @Autowired(required = false)
    UserDao userDao;

    @Override
    public List<User> findAll() {
        return userDao.findAll();
    }

    @Override
    public List<User> findAll1(String name) {
        return userDao.findAll1(name);
    }

    @Override
    public List<User> findAll2(int tel) {
        return userDao.findAll2(tel);
    }

    @Override
    public List<User> findAll3(String start, String end) {
        return userDao.findAll3(start,end);
    }

    @Override
    public List<User> findAll4(int start) {
        return userDao.findAll4(start);
    }

    @Override
    public List<User> findAll5() {
        return userDao.findAll5();
    }


}
